package com.example;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;

@SpringBootApplication
@ServletComponentScan // 注意要加上@ServletComponentScan注解，否则Servlet无法生效
@MapperScan("com.example.mapper") // 这里mapper是你的mybatis的mapper目录。
public class Application {

	public static void main(String[] args) {
		SpringApplication.run(Application.class, args);
	}

}
